package cn.xunjie.basic.mapper;



import cn.xunjie.basic.query.BaseQuery;

import java.util.List;

public interface BaseMapper<T> {
    void save(T t);
    void delete(Long id);
    void update(T t);
    List<T> loadAll();
    T loadById(Long id);
    Long queryCount(BaseQuery query);
    List<T> queryData(BaseQuery query);

    void batchRemove(List<Long> ids);
}
